<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-room_id" class="control-label col-xs-12 col-sm-2">{:__('Room_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-room_id" data-rule="required" class="form-control" name="row[room_id]">
                {foreach name="rooms" item="vo"}
                {if ($row.room_id == $vo.id)}
                <option value="{$vo.id}" selected>
                    {$vo.room_name}-{$vo.building.name}-{$vo.community.name}
                </option>
                {else}
                <option value="{$vo.id}">
                    {$vo.room_name}-{$vo.building.name}-{$vo.community.name}
                </option>
                {/if}
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-status" class="form-control" name="row[status]">
<!--                if$row.status-->
                {foreach name="statusList" item="vo" key="index"}
                {if($index == $row.status)}
                    <option value="{$index}" selected>
                        {$vo}
                    </option>
                {else}
                    <option value="{$index}" >
                        {$vo}
                    </option>
                {/if}
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-remark" class="control-label col-xs-12 col-sm-2">事由:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" class="form-control" name="row[remark]">
                {$row.remark}
            </textarea>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label for="c-add_time" class="control-label col-xs-12 col-sm-2">{:__('Add_time')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-add_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[add_time]" type="text" value="{$row.add_time|datetime}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label for="c-update_time" class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-update_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{$row.update_time|datetime}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
